//
//  SAPLIvePlayTableViewCell.m
//  CarsHome
//
//  Created by dapeng on 15/12/17.
//  Copyright © 2015年 dapeng. All rights reserved.
//

#import "SAPLIvePlayTableViewCell.h"

@implementation SAPLIvePlayTableViewCell
- (void)dealloc {
    [_liveImage release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.liveImage = [[UIImageView alloc] init];
        self.liveImage.image = [UIImage imageNamed:@"livePIc.jpg"];
        [_liveImage release];
        [self addSubview:self.liveImage];
        [_liveImage release];
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_SIZE.width, SCREEN_SIZE.height / 4)];
        view.backgroundColor = [UIColor blackColor];
        view.alpha = 0.8;
        UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake((SCREEN_SIZE.width - SCREEN_SIZE.width / 3) / 2, (SCREEN_SIZE.height / 4 - 40) / 2, SCREEN_SIZE.width / 3, 40)];
        title.text = @"帮派音频";
        title.textColor = [UIColor lightGrayColor];
        title.textAlignment = NSTextAlignmentCenter;
        title.font = [UIFont systemFontOfSize:20];
        [view addSubview:title];
        [self.liveImage addSubview:view];
        [view release];
        
    }return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.liveImage.frame = CGRectMake(0, 0, SCREEN_SIZE.width, SCREEN_SIZE.height / 4);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
